
import request from '@/utils/request'


export const list: any = async (params: any) => {

    return await request({
        url: "/article/category/list",
        method: "get",
        params
    })

}

export const edit: any = async (data: any) => {

    return await request({
        url: "/article/category/edit",
        method: "put",
        data
    })

}

export const add: any = async (data: any) => {

    return await request({
        url: "/article/category/add",
        method: "POST",
        data
    })

}